package my.dao;

import java.sql.SQLException;
import java.util.List;

import my.bean.Customer;

public interface ICustomerDao {

	int add(Customer customer) throws SQLException;

	int deleteById(int userid) throws SQLException;

	int modify(Customer customer) throws SQLException;

	List<Customer> findAll();

	Customer findById(int useriId);

	Customer findByUserAcount(String accout);

	int modifyPassword(Customer customer) throws SQLException;
	
	Customer findByAccountAndPassword(String account, String password);

}
